@import './variables.scss';

@mixin colorBtn($color) {
  background: $color;
  &:hover {
    color: $color;
    &:before,
    &:after {
      background: $color;
    }
  }
}

.blue-btn {
  @include colorBtn($blue);
}

.light-blue-btn {
  @include colorBtn($light-blue);
}

.red-btn {
  @include colorBtn($red);
}

.pink-btn {
  @include colorBtn($pink);
}

.green-btn {
  @include colorBtn($green);
}

.tiffany-btn {
  @include colorBtn($tiffany);
}

.yellow-btn {
  @include colorBtn($yellow);
}

.pan-btn {
  font-size: 14px;
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  border: none;
  outline: none;
  transition: 600ms ease all;
  position: relative;
  display: inline-block;
  &:hover {
    background: #fff;
    &:before,
    &:after {
      width: 100%;
      transition: 600ms ease all;
    }
  }
  &:before,
  &:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 2px;
    width: 0;
    transition: 400ms ease all;
  }
  &::after {
    right: inherit;
    top: inherit;
    left: 0;
    bottom: 0;
  }
}

.custom-button {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  color: #fff;
  -webkit-appearance: none;
  text-align: center;
  box-sizing: border-box;
  outline: 0;
  margin: 0;
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 4px;
}
.el-dialog__wrapper {
  .el-dialog .el-dialog__header {
    cursor: pointer;
  }
  .upload-demo .el-upload_tip {
    color: #aaa;
  }
}
// 树形 结构色调
.elTree_wrap {
  .side-bar-scrollbar-wrap {
    background-color: #8bc34a99;
  }
  .el-scrollbar__wrap {
    width: 100%;
  }
  .el-scrollbar__view {
    .el-tree {
      background-color: transparent;
      color: #000;
    }
    .el-tree-node__expand-icon.expanded,
    .el-tree-node__expand-icon {
      color: #fff;
    }
    .el-tree-node__expand-icon.is-leaf {
      color: transparent;
    }
  }
}

// 调整 按钮 图标 大小
[class*=' el-icon-'],
[class^='el-icon-'] {
  font-size: 14px;
}
// 调整公告字体颜色
.ql-editor p {
  color: #333;
}
// 上传文件 样式
.el-upload-list__item:hover {
  background-color: #c4d9f9;
}
// form表单样式去下边距
.searchForm_inline {
  .el-form-item--small.el-form-item {
    margin-bottom: 8px;
  }
}
.bigHeight .el-form .el-form-item--small.el-form-item {
  margin-bottom: 8px;
}
// 数据表格 在添加新的自定义属性 时 样式
.tabscrollBody {
  > .el-table__body-wrapper {
    max-height: 350px;
    overflow-y: auto;
  }
}
// 话术表样式调整
.business_table .el-table__body-wrapper {
  table > tbody > tr > td:nth-child(2) > .cell {
    text-align: left;
    text-indent: 5px;
  }
}
// 滑块 样式调整
.is-scrolling-left::-webkit-scrollbar,
.is-scrolling-right::-webkit-scrollbar,
.is-scrolling-middle::-webkit-scrollbar {
  height: 12px;
}
//
.ivrtree .org-tree-node .org-tree-node-label-inner {
  width: 180px;
}
// /////////////////////////////////////////////////////////////////////////////////////
// 浏览器的可视部分宽度 最小宽度1920 时
@media screen and (min-width: 1919px) {
  /* 统一 input框的长度问题 */
  .el-form-item__content .el-input__inner {
    width: 240px;
    min-width: 200px;
    height: 36px;
    line-height: 36px;
  }
  .el-form-item-span {
    width: 240px;
    min-width: 200px;
    height: 36px;
    line-height: 36px;
  }
  .el-form-item .el-input input {
    width: 240px;
    min-width: 200px;
    height: 36px;
    line-height: 36px;
  }
  .el-date-editor.el-input {
    width: 240px;
    min-width: 200px;
    height: 36px;
    line-height: 36px;
  }
  .el-date-editor .el-range-separator {
    width: 8%;
  }
  .lowriskvalidate,
  .highriskvalidate,
  .midriskvalidate {
    .box-group .content .pStyle {
      .cell {
        width: 60%;
      }
    }
  }
}

//浏览器的可视部分宽度 大于 1600 时
@media screen and (min-width: 1599px) and (max-width: 1919px) {
  /* 统一 input框的长度问题 */
  .el-form-item__content .el-input__inner {
    width: 220px;
    min-width: 200px;
    height: 34px;
    line-height: 34px;
  }
  .el-form-item-span {
    width: 220px;
    min-width: 200px;
    height: 34px;
    line-height: 34px;
  }
  .el-form-item .el-input input {
    width: 220px;
    min-width: 200px;
    height: 34px;
    line-height: 34px;
  }
  .el-date-editor.el-input {
    width: 220px;
    min-width: 200px;
    height: 34px;
    line-height: 34px;
  }
  .el-date-editor .el-range-separator {
    width: 10%;
  }
  .lowriskvalidate,
  .highriskvalidate,
  .midriskvalidate {
    .box-group .content .pStyle {
      .cell {
        width: 51%;
      }
    }
  }
}
//浏览器的可视部分宽度 小于最大宽度1600 时
@media screen and (max-width: 1599px) {
  /* 统一 input框的长度问题 */
  .el-form-item__content .el-input__inner {
    width: 200px;
    min-width: 200px;
    height: 32px;
    line-height: 32px;
  }
  .el-form-item-span {
    width: 200px;
    min-width: 200px;
    height: 32px;
    line-height: 32px;
  }
  .el-form-item .el-input input {
    width: 200px;
    min-width: 200px;
    height: 32px;
    line-height: 32px;
  }
  .el-date-editor.el-input {
    width: 200px;
    min-width: 200px;
    height: 32px;
    line-height: 32px;
  }
  .el-date-editor .el-range-separator {
    width: 10%;
  }
  .lowriskvalidate,
  .highriskvalidate,
  .midriskvalidate {
    .box-group .content .pStyle {
      .cell {
        width: 51%;
      }
    }
  }
}

// 定义动画
@keyframes turnIcon {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(90deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(270deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
